package com.mail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mail.common.utils.PageUtils;
import com.mail.product.entity.AttrEntity;
import com.mail.product.vo.AttrGroupRelationVo;
import com.mail.product.vo.AttrRespVo;
import com.mail.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author andy
 * @email litaomailx@163.com
 * @date 2021-08-08 15:57:07
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    void saveAttr(AttrVo attrVo);
    
    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);
    
    AttrRespVo getAttrInfo(Long attrId);
    
    void updateAttr(AttrVo attr);
    
    List<AttrEntity> getRelationAttr(Long attrgroupId);
    
    void deleteRelation(AttrGroupRelationVo[] vos);
    
    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
}

